﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class AssetLoader : MonoBehaviour {

	// Use this for initialization
	void Start ()
    {
		
	}
	
	// Update is called once per frame
	void Update ()
    {
		
	}

    public static T Load<T>(string name,string externName) where T : UnityEngine.Object
    {
#if UNITY_EDITOR 
        return UnityEditor.AssetDatabase.LoadAssetAtPath<T>("Assets/" + name + externName);
#endif
        return Resources.Load<T>(name);
    }

}
